package br.com.klanpaia.Logon;


import org.andengine.entity.scene.Scene;
import org.andengine.entity.scene.background.Background;
import org.andengine.entity.sprite.AnimatedSprite;
import org.andengine.entity.sprite.Sprite;
import org.andengine.opengl.texture.region.TiledTextureRegion;

import br.com.klanpaia.Game.MainActivity;

public class Logon extends Scene {
	private Sprite logon1;
	TiledTextureRegion imagem;
	MainActivity contexto;
	int px, py;
	boolean fundoBranco;
	
	public Logon(MainActivity contexto, int px, int py, TiledTextureRegion imagem, boolean fundoBranco) {
		super();
		this.contexto = contexto;
		this.px = px;
		this.py = py;
		this.imagem = imagem;
		this.fundoBranco = fundoBranco;
		
		logon1 = new Sprite(this.px, this.py, imagem, contexto.getVertexBufferObjectManager());
		if(fundoBranco == true) this.setBackground(new Background(100f,100f,100f, 100));
		
		this.attachChild(logon1);
	}


	
	
	
}
